auto merge of #142 : rust-lang/cargo/new-names, r=alexcrichton
authorbors <bors@rust-lang.org>
Tue, 8 Jul 2014 06:14:56 +0000 (06:14 +0000)
committerbors <bors@rust-lang.org>
Tue, 8 Jul 2014 06:14:56 +0000 (06:14 +0000)
commita6061db0d0fe6e3ccc659b870a8125661d961fcd
treede33dfe478b2902478fabeebaba50aca30d81d2c
parente072ee3648bc62c7fdaef21acb40aceb44ad0c08
parente4ae1abb925093f955df8a84309ae87df1ce2087
auto merge of #142 : rust-lang/cargo/new-names, r=alexcrichton

This PR moves Cargo over to the new naming based on [RFC 35](https://github.com/rust-lang/rfcs/blob/master/complete/0035-remove-crate-id.md).

* You should no longer use `#[crate_name]` or `#[crate_id]` in any crate managed by Cargo.
* You no longer need a `[[lib]]` section in your `Cargo.toml` if you name your library `src/lib.rs`.
* You no longer need a `[[bin]]` section in your `Cargo.toml` if you name your library `src/main.rs`.
* You can include multiple `[[bins]]` in `src/bin/*.rs` and Cargo will treat them as if they were specified via `[[bin]]`.

This commit does not yet add support for `-C metadata` or `-C extra-file-name`, but that is coming soon.
src/cargo/core/manifest.rs
src/cargo/ops/cargo_rustc.rs
src/cargo/util/toml.rs
tests/test_cargo_compile.rs